package asava.trees;

/**
 * @author Tim Richter
 */
public final class Indexed extends Tree {
    public Tree selector;
    public Tree index;

    public Indexed(final Tree selector,
                   final Tree index) {
        this.selector = selector;
        this.index = index;
    }

    @Override
    public int kind() {
        return TreeKind.INDEXED;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
